const http = require('http');
const fs = require('fs');

http.createServer(function (request, response){
    const data = fs.readFileSync('a1.html', 'utf8');
    // console.log(data);
  response.writeHead(200, {'Content-Type': 'text/plain'});
  response.write(`${data}`);
  response.end();
}).listen(8000, '127.0.0.1');
//http://127.0.0.1:8000
console.log('Server running on port ：http://127.0.0.1:8000.');


